headerbar: don't allocate both label and custom title
authorRay Strode <rstrode@redhat.com>
Thu, 23 Jun 2016 12:57:55 +0000 (08:57 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 23 Jun 2016 18:32:33 +0000 (14:32 -0400)
commit01eda209e19f02b507a8ddd73ae3b2bf74e7d5c2
treed3920630d4b657dccdc6ae29b4bba55785100220
parent3947ff44c900326b20b571fbff564ee7757bc387
headerbar: don't allocate both label and custom title

It's only possible to have a label or a custom title, not both.
The size allocate code confusingly treats them as independent.

That is confusing, because, as the code is written, it makes it
look like the space for the custom title isn't getting accounted
for.

This commit else-ifies some parts of the size allocate code for
clarity.
gtk/gtkheaderbar.c